package pe.org.cnl.congreso.controller;

import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import pe.org.cnl.congreso.service.ContinenteService;

@Controller
@Scope("session")
public class EstadisticasController {
	
	private static final Logger logger = Logger.getLogger(EstadisticasController.class );
	
	@Autowired
	private ContinenteService continenteService;
	
	@RequestMapping(value = "estadisticas.htm")
	public String index() {
		logger.debug("cantidad de contintentes "+continenteService.count() );
		return "estadisticas";
	}
	
}